﻿using System;

namespace Calendar.Domain
{
    enum Emergency
    {
        ImportantEmergent,
        ImportantNotEmergent,
        EmergentNotImportant,
        NotEmergentNotImportant
    }

    public class Work
    {
        public string Name { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime Deadline { get; set; }
        public int EmergencyLevel { get; set; }
        public int Progress { get; set; }

        public Work()
        {
            Name = String.Empty;
            StartTime = DateTime.Today;
            Deadline = DateTime.Today;
            EmergencyLevel = (int)Emergency.NotEmergentNotImportant;
            Progress = 0;
        }

        public Work(string workName, DateTime startDateTime, DateTime deadlineDateTime, int emergencyLevel, int progress)
        {
            Name = workName;
            StartTime = startDateTime;
            Deadline = deadlineDateTime;
            EmergencyLevel = emergencyLevel;
            Progress = progress;
        }
    }
}
